<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>HTTP</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.gupnp-service-thaw-notify.html">gupnp_service_thaw_notify</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intro.http.html">简介</a></div>
 <div class="up"><a href="refs.remote.other.html">其它服务</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="book.http" class="book">
 <h1 class="title">HTTP</h1>
 
 
 
 
 
 







 





 






 







 







 






 
 
 





 







 







 








 








<ul class="chunklist chunklist_book"><li><a href="intro.http.html">简介</a></li><li><a href="http.setup.html">安装／配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="http.requirements.html">需求</a></li><li><a href="http.install.html">Installing the HTTP extension</a> — Installation/Configuration</li><li><a href="http.configuration.html">运行时配置</a></li><li><a href="http.resources.html">资源类型</a></li></ul></li><li><a href="http.constants.html">预定义常量</a></li><li><a href="http.request.options.html">Request Options</a> — Options usable with the HttpRequest class and request functions</li><li><a href="class.httpdeflatestream.html">HttpDeflateStream</a> — The HttpDeflateStream class<ul class="chunklist chunklist_book chunklist_children"><li><a href="httpdeflatestream.construct.html">HttpDeflateStream::__construct</a> — HttpDeflateStream class constructor</li><li><a href="httpdeflatestream.factory.html">HttpDeflateStream::factory</a> — HttpDeflateStream class factory</li><li><a href="httpdeflatestream.finish.html">HttpDeflateStream::finish</a> — Finalize deflate stream</li><li><a href="httpdeflatestream.flush.html">HttpDeflateStream::flush</a> — Flush deflate stream</li><li><a href="httpdeflatestream.update.html">HttpDeflateStream::update</a> — Update deflate stream</li></ul></li><li><a href="class.httpinflatestream.html">HttpInflateStream</a> — The HttpInflateStream class<ul class="chunklist chunklist_book chunklist_children"><li><a href="httpinflatestream.construct.html">HttpInflateStream::__construct</a> — HttpInflateStream class constructor</li><li><a href="httpinflatestream.factory.html">HttpInflateStream::factory</a> — HttpInflateStream class factory</li><li><a href="httpinflatestream.finish.html">HttpInflateStream::finish</a> — Finalize inflate stream</li><li><a href="httpinflatestream.flush.html">HttpInflateStream::flush</a> — Flush inflate stream</li><li><a href="httpinflatestream.update.html">HttpInflateStream::update</a> — Update inflate stream</li></ul></li><li><a href="class.httpmessage.html">HttpMessage</a> — The HttpMessage class<ul class="chunklist chunklist_book chunklist_children"><li><a href="httpmessage.addheaders.html">HttpMessage::addHeaders</a> — Add headers</li><li><a href="httpmessage.construct.html">HttpMessage::__construct</a> — HttpMessage constructor</li><li><a href="httpmessage.detach.html">HttpMessage::detach</a> — Detach HttpMessage</li><li><a href="httpmessage.factory.html">HttpMessage::factory</a> — Create HttpMessage from string</li><li><a href="httpmessage.fromenv.html">HttpMessage::fromEnv</a> — Create HttpMessage from environment</li><li><a href="httpmessage.fromstring.html">HttpMessage::fromString</a> — Create HttpMessage from string</li><li><a href="httpmessage.getbody.html">HttpMessage::getBody</a> — Get message body</li><li><a href="httpmessage.getheader.html">HttpMessage::getHeader</a> — Get header</li><li><a href="httpmessage.getheaders.html">HttpMessage::getHeaders</a> — Get message headers</li><li><a href="httpmessage.gethttpversion.html">HttpMessage::getHttpVersion</a> — Get HTTP version</li><li><a href="httpmessage.getparentmessage.html">HttpMessage::getParentMessage</a> — Get parent message</li><li><a href="httpmessage.getrequestmethod.html">HttpMessage::getRequestMethod</a> — Get request method</li><li><a href="httpmessage.getrequesturl.html">HttpMessage::getRequestUrl</a> — Get request URL</li><li><a href="httpmessage.getresponsecode.html">HttpMessage::getResponseCode</a> — Get response code</li><li><a href="httpmessage.getresponsestatus.html">HttpMessage::getResponseStatus</a> — Get response status</li><li><a href="httpmessage.gettype.html">HttpMessage::getType</a> — Get message type</li><li><a href="httpmessage.guesscontenttype.html">HttpMessage::guessContentType</a> — Guess content type</li><li><a href="httpmessage.prepend.html">HttpMessage::prepend</a> — Prepend message(s)</li><li><a href="httpmessage.reverse.html">HttpMessage::reverse</a> — Reverse message chain</li><li><a href="httpmessage.send.html">HttpMessage::send</a> — Send message</li><li><a href="httpmessage.setbody.html">HttpMessage::setBody</a> — Set message body</li><li><a href="httpmessage.setheaders.html">HttpMessage::setHeaders</a> — Set headers</li><li><a href="httpmessage.sethttpversion.html">HttpMessage::setHttpVersion</a> — Set HTTP version</li><li><a href="httpmessage.setrequestmethod.html">HttpMessage::setRequestMethod</a> — Set request method</li><li><a href="httpmessage.setrequesturl.html">HttpMessage::setRequestUrl</a> — Set request URL</li><li><a href="httpmessage.setresponsecode.html">HttpMessage::setResponseCode</a> — Set response code</li><li><a href="httpmessage.setresponsestatus.html">HttpMessage::setResponseStatus</a> — Set response status</li><li><a href="httpmessage.settype.html">HttpMessage::setType</a> — Set message type</li><li><a href="httpmessage.tomessagetypeobject.html">HttpMessage::toMessageTypeObject</a> — Create HTTP object regarding message type</li><li><a href="httpmessage.tostring.html">HttpMessage::toString</a> — Get string representation</li></ul></li><li><a href="class.httpquerystring.html">HttpQueryString</a> — The HttpQueryString class<ul class="chunklist chunklist_book chunklist_children"><li><a href="httpquerystring.construct.html">HttpQueryString::__construct</a> — HttpQueryString constructor</li><li><a href="httpquerystring.get.html">HttpQueryString::get</a> — Get (part of) query string</li><li><a href="httpquerystring.mod.html">HttpQueryString::mod</a> — Modifiy query string copy</li><li><a href="httpquerystring.set.html">HttpQueryString::set</a> — Set query string params</li><li><a href="httpquerystring.singleton.html">HttpQueryString::singleton</a> — HttpQueryString singleton</li><li><a href="httpquerystring.toarray.html">HttpQueryString::toArray</a> — Get query string as array</li><li><a href="httpquerystring.tostring.html">HttpQueryString::toString</a> — Get query string</li><li><a href="httpquerystring.xlate.html">HttpQueryString::xlate</a> — Change query strings charset</li></ul></li><li><a href="class.httprequest.html">HttpRequest</a> — The HttpRequest<ul class="chunklist chunklist_book chunklist_children"><li><a href="httprequest.addcookies.html">HttpRequest::addCookies</a> — Add cookies</li><li><a href="httprequest.addheaders.html">HttpRequest::addHeaders</a> — Add headers</li><li><a href="httprequest.addpostfields.html">HttpRequest::addPostFields</a> — Add post fields</li><li><a href="httprequest.addpostfile.html">HttpRequest::addPostFile</a> — Add post file</li><li><a href="httprequest.addputdata.html">HttpRequest::addPutData</a> — Add put data</li><li><a href="httprequest.addquerydata.html">HttpRequest::addQueryData</a> — Add query data</li><li><a href="httprequest.addrawpostdata.html">HttpRequest::addRawPostData</a> — Add raw post data</li><li><a href="httprequest.addssloptions.html">HttpRequest::addSslOptions</a> — Add ssl options</li><li><a href="httprequest.clearhistory.html">HttpRequest::clearHistory</a> — Clear history</li><li><a href="httprequest.construct.html">HttpRequest::__construct</a> — HttpRequest constructor</li><li><a href="httprequest.enablecookies.html">HttpRequest::enableCookies</a> — Enable cookies</li><li><a href="httprequest.getcontenttype.html">HttpRequest::getContentType</a> — Get content type</li><li><a href="httprequest.getcookies.html">HttpRequest::getCookies</a> — Get cookies</li><li><a href="httprequest.getheaders.html">HttpRequest::getHeaders</a> — Get headers</li><li><a href="httprequest.gethistory.html">HttpRequest::getHistory</a> — Get history</li><li><a href="httprequest.getmethod.html">HttpRequest::getMethod</a> — Get method</li><li><a href="httprequest.getoptions.html">HttpRequest::getOptions</a> — Get options</li><li><a href="httprequest.getpostfields.html">HttpRequest::getPostFields</a> — Get post fields</li><li><a href="httprequest.getpostfiles.html">HttpRequest::getPostFiles</a> — Get post files</li><li><a href="httprequest.getputdata.html">HttpRequest::getPutData</a> — Get put data</li><li><a href="httprequest.getputfile.html">HttpRequest::getPutFile</a> — Get put file</li><li><a href="httprequest.getquerydata.html">HttpRequest::getQueryData</a> — Get query data</li><li><a href="httprequest.getrawpostdata.html">HttpRequest::getRawPostData</a> — Get raw post data</li><li><a href="httprequest.getrawrequestmessage.html">HttpRequest::getRawRequestMessage</a> — Get raw request message</li><li><a href="httprequest.getrawresponsemessage.html">HttpRequest::getRawResponseMessage</a> — Get raw response message</li><li><a href="httprequest.getrequestmessage.html">HttpRequest::getRequestMessage</a> — Get request message</li><li><a href="httprequest.getresponsebody.html">HttpRequest::getResponseBody</a> — Get response body</li><li><a href="httprequest.getresponsecode.html">HttpRequest::getResponseCode</a> — Get response code</li><li><a href="httprequest.getresponsecookies.html">HttpRequest::getResponseCookies</a> — Get response cookie(s)</li><li><a href="httprequest.getresponsedata.html">HttpRequest::getResponseData</a> — Get response data</li><li><a href="httprequest.getresponseheader.html">HttpRequest::getResponseHeader</a> — Get response header(s)</li><li><a href="httprequest.getresponseinfo.html">HttpRequest::getResponseInfo</a> — Get response info</li><li><a href="httprequest.getresponsemessage.html">HttpRequest::getResponseMessage</a> — Get response message</li><li><a href="httprequest.getresponsestatus.html">HttpRequest::getResponseStatus</a> — Get response status</li><li><a href="httprequest.getssloptions.html">HttpRequest::getSslOptions</a> — Get ssl options</li><li><a href="httprequest.geturl.html">HttpRequest::getUrl</a> — Get url</li><li><a href="httprequest.resetcookies.html">HttpRequest::resetCookies</a> — Reset cookies</li><li><a href="httprequest.send.html">HttpRequest::send</a> — Send request</li><li><a href="httprequest.setbody.html">HttpRequest::setBody</a> — Set request body to send, overwriting previously set request body.</li><li><a href="httprequest.setcontenttype.html">HttpRequest::setContentType</a> — Set content type</li><li><a href="httprequest.setcookies.html">HttpRequest::setCookies</a> — Set cookies</li><li><a href="httprequest.setheaders.html">HttpRequest::setHeaders</a> — Set headers</li><li><a href="httprequest.setmethod.html">HttpRequest::setMethod</a> — Set method</li><li><a href="httprequest.setoptions.html">HttpRequest::setOptions</a> — Set options</li><li><a href="httprequest.setpostfields.html">HttpRequest::setPostFields</a> — Set post fields</li><li><a href="httprequest.setpostfiles.html">HttpRequest::setPostFiles</a> — Set post files</li><li><a href="httprequest.setputdata.html">HttpRequest::setPutData</a> — Set put data</li><li><a href="httprequest.setputfile.html">HttpRequest::setPutFile</a> — Set put file</li><li><a href="httprequest.setquerydata.html">HttpRequest::setQueryData</a> — Set query data</li><li><a href="httprequest.setrawpostdata.html">HttpRequest::setRawPostData</a> — Set raw post data</li><li><a href="httprequest.setssloptions.html">HttpRequest::setSslOptions</a> — Set ssl options</li><li><a href="httprequest.seturl.html">HttpRequest::setUrl</a> — Set URL</li></ul></li><li><a href="class.httprequestpool.html">HttpRequestPool</a> — The HttpRequestPool class<ul class="chunklist chunklist_book chunklist_children"><li><a href="httprequestpool.attach.html">HttpRequestPool::attach</a> — Attach HttpRequest</li><li><a href="httprequestpool.construct.html">HttpRequestPool::__construct</a> — HttpRequestPool constructor</li><li><a href="httprequestpool.destruct.html">HttpRequestPool::__destruct</a> — HttpRequestPool destructor</li><li><a href="httprequestpool.detach.html">HttpRequestPool::detach</a> — Detach HttpRequest</li><li><a href="httprequestpool.getattachedrequests.html">HttpRequestPool::getAttachedRequests</a> — Get attached requests</li><li><a href="httprequestpool.getfinishedrequests.html">HttpRequestPool::getFinishedRequests</a> — Get finished requests</li><li><a href="httprequestpool.reset.html">HttpRequestPool::reset</a> — Reset request pool</li><li><a href="httprequestpool.send.html">HttpRequestPool::send</a> — Send all requests</li><li><a href="httprequestpool.socketperform.html">HttpRequestPool::socketPerform</a> — Perform socket actions</li><li><a href="httprequestpool.socketselect.html">HttpRequestPool::socketSelect</a> — Perform socket select</li></ul></li><li><a href="class.httpresponse.html">HttpResponse</a> — The HttpResponse<ul class="chunklist chunklist_book chunklist_children"><li><a href="httpresponse.capture.html">HttpResponse::capture</a> — Capture script output</li><li><a href="httpresponse.getbuffersize.html">HttpResponse::getBufferSize</a> — Get buffer size</li><li><a href="httpresponse.getcache.html">HttpResponse::getCache</a> — Get cache</li><li><a href="httpresponse.getcachecontrol.html">HttpResponse::getCacheControl</a> — Get cache control</li><li><a href="httpresponse.getcontentdisposition.html">HttpResponse::getContentDisposition</a> — Get content disposition</li><li><a href="httpresponse.getcontenttype.html">HttpResponse::getContentType</a> — Get content type</li><li><a href="httpresponse.getdata.html">HttpResponse::getData</a> — Get data</li><li><a href="httpresponse.getetag.html">HttpResponse::getETag</a> — Get ETag</li><li><a href="httpresponse.getfile.html">HttpResponse::getFile</a> — Get file</li><li><a href="httpresponse.getgzip.html">HttpResponse::getGzip</a> — Get gzip</li><li><a href="httpresponse.getheader.html">HttpResponse::getHeader</a> — Get header</li><li><a href="httpresponse.getlastmodified.html">HttpResponse::getLastModified</a> — Get last modified</li><li><a href="httpresponse.getrequestbody.html">HttpResponse::getRequestBody</a> — Get request body</li><li><a href="httpresponse.getrequestbodystream.html">HttpResponse::getRequestBodyStream</a> — Get request body stream</li><li><a href="httpresponse.getrequestheaders.html">HttpResponse::getRequestHeaders</a> — Get request headers</li><li><a href="httpresponse.getstream.html">HttpResponse::getStream</a> — Get Stream</li><li><a href="httpresponse.getthrottledelay.html">HttpResponse::getThrottleDelay</a> — Get throttle delay</li><li><a href="httpresponse.guesscontenttype.html">HttpResponse::guessContentType</a> — Guess content type</li><li><a href="httpresponse.redirect.html">HttpResponse::redirect</a> — Redirect</li><li><a href="httpresponse.send.html">HttpResponse::send</a> — Send response</li><li><a href="httpresponse.setbuffersize.html">HttpResponse::setBufferSize</a> — Set buffer size</li><li><a href="httpresponse.setcache.html">HttpResponse::setCache</a> — Set cache</li><li><a href="httpresponse.setcachecontrol.html">HttpResponse::setCacheControl</a> — Set cache control</li><li><a href="httpresponse.setcontentdisposition.html">HttpResponse::setContentDisposition</a> — Set content disposition</li><li><a href="httpresponse.setcontenttype.html">HttpResponse::setContentType</a> — Set content type</li><li><a href="httpresponse.setdata.html">HttpResponse::setData</a> — Set data</li><li><a href="httpresponse.setetag.html">HttpResponse::setETag</a> — Set ETag</li><li><a href="httpresponse.setfile.html">HttpResponse::setFile</a> — Set file</li><li><a href="httpresponse.setgzip.html">HttpResponse::setGzip</a> — Set gzip</li><li><a href="httpresponse.setheader.html">HttpResponse::setHeader</a> — Set header</li><li><a href="httpresponse.setlastmodified.html">HttpResponse::setLastModified</a> — Set last modified</li><li><a href="httpresponse.setstream.html">HttpResponse::setStream</a> — Set stream</li><li><a href="httpresponse.setthrottledelay.html">HttpResponse::setThrottleDelay</a> — Set throttle delay</li><li><a href="httpresponse.status.html">HttpResponse::status</a> — Send HTTP response status</li></ul></li><li><a href="ref.http.html">HTTP 函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.http-cache-etag.html">http_cache_etag</a> — Caching by ETag</li><li><a href="function.http-cache-last-modified.html">http_cache_last_modified</a> — Caching by last modification</li><li><a href="function.http-chunked-decode.html">http_chunked_decode</a> — Decode chunked-encoded data</li><li><a href="function.http-deflate.html">http_deflate</a> — Deflate data</li><li><a href="function.http-inflate.html">http_inflate</a> — Inflate data</li><li><a href="function.http-build-cookie.html">http_build_cookie</a> — Build cookie string</li><li><a href="function.http-date.html">http_date</a> — Compose HTTP RFC compliant date</li><li><a href="function.http-get-request-body-stream.html">http_get_request_body_stream</a> — Get request body as stream</li><li><a href="function.http-get-request-body.html">http_get_request_body</a> — Get request body as string</li><li><a href="function.http-get-request-headers.html">http_get_request_headers</a> — Get request headers as array</li><li><a href="function.http-match-etag.html">http_match_etag</a> — Match ETag</li><li><a href="function.http-match-modified.html">http_match_modified</a> — Match last modification</li><li><a href="function.http-match-request-header.html">http_match_request_header</a> — Match any header</li><li><a href="function.http-support.html">http_support</a> — Check built-in HTTP support</li><li><a href="function.http-negotiate-charset.html">http_negotiate_charset</a> — Negotiate client's preferred character set</li><li><a href="function.http-negotiate-content-type.html">http_negotiate_content_type</a> — Negotiate client's preferred content type</li><li><a href="function.http-negotiate-language.html">http_negotiate_language</a> — Negotiate client's preferred language</li><li><a href="function.ob-deflatehandler.html">ob_deflatehandler</a> — Deflate output handler</li><li><a href="function.ob-etaghandler.html">ob_etaghandler</a> — ETag output handler</li><li><a href="function.ob-inflatehandler.html">ob_inflatehandler</a> — Inflate output handler</li><li><a href="function.http-parse-cookie.html">http_parse_cookie</a> — Parse HTTP cookie</li><li><a href="function.http-parse-headers.html">http_parse_headers</a> — Parse HTTP headers</li><li><a href="function.http-parse-message.html">http_parse_message</a> — Parse HTTP messages</li><li><a href="function.http-parse-params.html">http_parse_params</a> — Parse parameter list</li><li><a href="function.http-persistent-handles-clean.html">http_persistent_handles_clean</a> — Clean up persistent handles</li><li><a href="function.http-persistent-handles-count.html">http_persistent_handles_count</a> — Stat persistent handles</li><li><a href="function.http-persistent-handles-ident.html">http_persistent_handles_ident</a> — Get/set ident of persistent handles</li><li><a href="function.http-get.html">http_get</a> — Perform GET request</li><li><a href="function.http-head.html">http_head</a> — Perform HEAD request</li><li><a href="function.http-post-data.html">http_post_data</a> — Perform POST request with pre-encoded data</li><li><a href="function.http-post-fields.html">http_post_fields</a> — Perform POST request with data to be encoded</li><li><a href="function.http-put-data.html">http_put_data</a> — Perform PUT request with data</li><li><a href="function.http-put-file.html">http_put_file</a> — Perform PUT request with file</li><li><a href="function.http-put-stream.html">http_put_stream</a> — Perform PUT request with stream</li><li><a href="function.http-request-body-encode.html">http_request_body_encode</a> — Encode request body</li><li><a href="function.http-request-method-exists.html">http_request_method_exists</a> — Check whether request method exists</li><li><a href="function.http-request-method-name.html">http_request_method_name</a> — Get request method name</li><li><a href="function.http-request-method-register.html">http_request_method_register</a> — Register request method</li><li><a href="function.http-request-method-unregister.html">http_request_method_unregister</a> — Unregister request method</li><li><a href="function.http-request.html">http_request</a> — Perform custom request</li><li><a href="function.http-redirect.html">http_redirect</a> — Issue HTTP redirect</li><li><a href="function.http-send-content-disposition.html">http_send_content_disposition</a> — Send Content-Disposition</li><li><a href="function.http-send-content-type.html">http_send_content_type</a> — Send Content-Type</li><li><a href="function.http-send-data.html">http_send_data</a> — Send arbitrary data</li><li><a href="function.http-send-file.html">http_send_file</a> — Send file</li><li><a href="function.http-send-last-modified.html">http_send_last_modified</a> — Send Last-Modified</li><li><a href="function.http-send-status.html">http_send_status</a> — Send HTTP response status</li><li><a href="function.http-send-stream.html">http_send_stream</a> — Send stream</li><li><a href="function.http-throttle.html">http_throttle</a> — HTTP throttling</li><li><a href="function.http-build-str.html">http_build_str</a> — 产生一个查询字符串</li><li><a href="function.http-build-url.html">http_build_url</a> — 产生一个 URL</li></ul></li></ul></div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.gupnp-service-thaw-notify.html">gupnp_service_thaw_notify</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intro.http.html">简介</a></div>
 <div class="up"><a href="refs.remote.other.html">其它服务</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
